<layout name="../../../resource/master"/>
<ul class="breadcrumb no-border no-radius b-b b-light pull-in">
    <li><a href="index.html"><i class="fa fa-home"></i> Home</a></li>
    <li><a href="#">UI kit</a></li>
    <li><a href="#">Form</a></li>
    <li class="active">Elements</li>
</ul>
<div class="m-b-md">
    <h3 class="m-b-none">修改网站配置</h3>
</div>
<div class="row">
    <div class="col-sm-12">
        <section class="panel panel-default">
            <header class="panel-heading font-bold">修改配置</header>
            <div class="panel-body">
                <form role="form" action="" method="post">
                    <div class="form-group">
                        <label>网站名称</label>
                        <input type="text" class="form-control" ng-model="field.webname">
                    </div>
                    <div class="form-group">
                        <label>备案信息</label>
                        <input type="text" class="form-control" ng-model="field.copyright" >
                    </div>
                    <div class="form-group">
                        <label>客服电话</label>
                        <input type="text" class="form-control" ng-model="field.tel">
                    </div>
                    <input type="hidden" name="system" value="{{field}}">
                    <button type="submit" class="btn btn-sm btn-default">Submit</button>
                </form>
            </div>
        </section>
    </div>
</div>
<script>
    function controller($scope, $, _) {
//        $scope.field = {
//            'webname':'as',
//            'copyright':'13',
//            'tel':'133113'
//
//        };
//
        $scope.field = <?php echo $field['system']?>;
    }
</script>